Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nvhpc on ncar machines #192

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

mnlevy1981
Copy link
Collaborator

I also added a "--debug" command line argument to build_examples.sh and some module load statements to build_examples.sh for running on the NCAR machines, though that is skipped for casper nodes (including crhtc nodes).

I also added a "--debug" command line argument to build_examples.sh and some
module load statements to build_examples.sh for running on the NCAR machines,
though that is skipped for casper nodes (including crhtc nodes)
@mnlevy1981
Copy link
Collaborator Author

It would be great if the compiler flags set in standalone/templates/ncar-*.mk matched what is used in CESM. Eventually, I think we want to use the CIME build system (or at least cime/CIME/scripts/configure to create the Makefile based on configure_machines.xml), but as a short-term fix I'd like to get the various NCAR templates cleaned up -- they are all modifications of different files from mom-ocean/mkmf, so they look fairly different from one another. If they could all follow the same basic pattern and then also get FFLAGS and CFLAGS "right" (matching CESM for that compiler), that would be a useful temporary step.

To run MOM standalone use ./build_examples_cesm.sh just like
./build_examples.sh. To use the CESM compiler flags, (or at least the
rough conversion I've done), add a "--cesm" arg to the run. The
NVHPC with CESM is not working, and with intel debug it is clear there
is an issue. The GNU and Intel CESM version (Non Debug) builds and
runs. See templates for the changes between non-cesm and cesm flags.

If you would like to use the builds without building yourself, check out
this repo on derecho in
/glade/u/home/manishrv/documents/installs/mom_interface_pr_192/components/mom/standalone/build.
…,GNU, INTEL)

Made changes to the intel and nvhpc compiler flags to build properly and
run with double_gyre. Unfortunately that meant diverging slightly from
the CESM compiler flags, see comments in each template for more
information. So they all can be built and run, but each template needs
some workshopping to make sure they're good, for example I took out
-Ktrap=fp in NVHPC DEBUG which I think I need to confirm can be taken out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants